package com.rachel.viewpagerutils;

import android.view.View;

import java.util.List;

/**
 * Created by zhengshaorui on 2017/10/18.
 */

public class CusPagerData {
    List<View> views;
    boolean isGlide;
    boolean iscircle;
    public  CusPagerData(Builder builder) {
        views = builder.views;
        isGlide = builder.isGlide;
        iscircle = builder.iscircle;
    }

    public static class Builder{
        List<View> views;
        boolean isGlide;
        boolean iscircle;
        public Builder setDataViews(List<View> views){
            this.views = views;
            return this;
        }
        public Builder setGlideMode(boolean isGlide){
            this.isGlide = isGlide;
            return this;
        }
        public Builder setBottomCircle(boolean iscircle){
            this.iscircle = iscircle;
            return this;
        }

        public CusPagerData builder(){
            return new CusPagerData(this);
        }

    }
}
